using System.ComponentModel.DataAnnotations;
using KL.Standard.Model.Contant;

namespace KL.Standard.Model.ViewModels.InParams;

/// <summary>
/// 登录参数
/// </summary>
public class LoginParam
{
    /// <summary>
    /// 账号
    /// </summary>
    [Display(Name = "账号")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string loginID { set; get; }
    /// <summary>
    /// 密码
    /// </summary>
    [Display(Name = "密码")]
    [Required(ErrorMessage = "{0}不能为空")]
    public string loginPwd { set; get; }
    /// <summary>
    /// 语言
    /// </summary>
    public string lang { set; get; } = Lang.CN_LANG;
}